<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CommissionLog extends Model
{

    protected $table = 'commission_log';

    public $timestamps = false;

    const TYPE_IN = 1;
    const TYPE_WITHDRAW = 2;
    const TYPE_XIAJI = 3;


    public static function getByMobile($mobile){
        return self::query()->where("mobile", $mobile)->first();
    }

    public static function getByToken($token){
        return self::query()->where("token", $token)->first();
    }

}
